package com.henme.crm.dao.admin;


import com.henme.crm.entity.admin.User;
import com.henme.crm.util.dao.IBaseMapper;
import com.henme.crm.util.page.Page;

import java.util.List;
import java.util.Map;

public interface UserMapper extends IBaseMapper<User> {
    Long findUserPagecount(User user);
    List<User> findUserPage(Page<User> page);
    //通过用户删除角色
    void deleteRoles(long id);
    void markLocked(String[] ids);
    void markNotLocked(String[] ids);

    void markLockedbyUserid(long id);
    void markNotLockedbyUserid(long id);

    User lazyGet(long id);
    User queryUniqueByUsername(String username);
    //
    void deleteUserRole(Long id);

    void insertUserRoleBatch(List<Map<String, Object>> list);

}
